<?php
namespace app\serverintegralmall\service\order;
use \app\manage\service\ApiBase;
/**
 * @author:      李颖
 * @DateTime:    2017-11-02 14:49:26
 * @Description: 积分商品订单
 */

class Order extends ApiBase{
	

	protected $orderLogic = '\app\serverintegralmall\logic\Order';
    protected $orderValidate = '\app\serverintegralmall\validate\Order';

    
    /*后台获取积分订单列表*/
    public function adminIntegralOrderList(): array 
    {
        $data = $this->haveIssetReceiveData(['page'=>1, 'listRows'=>15, 'keywords'=>'', 'token'=>' ']);
        return $this->oneStepRun($data, 'serverintegralmall/order/Order/adminIntegralOrderList', '', '1', $this->orderValidate, $this->orderLogic);
    }

    /*后台获取某积分订单的详情*/
    public function adminIntegralOrderInfo(): array 
    {
        $data = $this->haveIssetReceiveData(['id'=>0, 'token'=>' ']);
        return $this->oneStepRun($data, 'serverintegralmall/order/Order/adminIntegralOrderInfo', '', '1', $this->orderValidate, $this->orderLogic);
    }

    /*后台对某积分订单进行发货操作*/
    public function shipmentsGoods(): array 
    {
        $data = $this->haveIssetReceiveData(['id'=>0, 'logistics_company_code'=>'', 'logistics_company_name'=>' ', 'waybill_number'=>' ', 'token'=>' ']);
        return $this->stepRun($data, 'serveruser/auth/Token/hGetAll,serveruser/auth/App/find,serverintegralmall/order/Order/adminIntegralOrderInfo,serveruser/user/User/info,serverfund/integral/IntegralAccount/unfreeze,serverfund/integral/IntegralAccount/transfer,serverintegralmall/order/Order/shipmentsGoods', '', 'shipmentsGoods', '1', $this->orderValidate, $this->orderLogic);
    }





}